package com.itheima.springboottilasmanager.controller;

import com.itheima.springboottilasmanager.pojo.domain.PageResult;
import com.itheima.springboottilasmanager.pojo.domain.Result;
import com.itheima.springboottilasmanager.pojo.domain.OperateLog;
import com.itheima.springboottilasmanager.pojo.vo.queryString;
import com.itheima.springboottilasmanager.survice.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/page")
    public Result page( queryString qs){
    PageResult<OperateLog> page =   logService.page(qs);
    return Result.success(page);
    }
}
